package com.work.daily;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * 排序法
 * Created by suk on 2020/10/27
 */
public class D20_SmallerNumbersThanCurrent_1365_01 {

    public static void main(String[] args) {
        D20_SmallerNumbersThanCurrent_1365_01 d20 = new D20_SmallerNumbersThanCurrent_1365_01();
        int[] nums = {8, 1, 1, 2};
        System.out.println(Arrays.toString(d20.smallerNumbersThanCurrent(nums)));
    }
    public int[] smallerNumbersThanCurrent(int[] nums) {
        // 排序之前要记录
        // 排序
        Arrays.sort(nums);
        int count = 0;
        for (int num : nums) {
//            if ()
        }
        return nums;
    }
}
